package com.titan.demo.camel.sample.component.log.Test02.camel.route;

import org.apache.camel.LoggingLevel;
import org.apache.camel.spring.SpringRouteBuilder;

public class DemoRouteBuilder extends SpringRouteBuilder {

	@Override
	public void configure() throws Exception {
		from("direct:start")
        .to("log:zzz.camel.component.log?level=INFO")
		.log("Processing>: ${body}")
		.log(LoggingLevel.INFO, "Processing>: ${body}")
        .log(LoggingLevel.INFO, this.getClass().getName(), "Processing>: ${body}")
		;
	}

}
